import { useStorage } from "../../hooks/useStorage.ts";
function App() {
  const [count, setCount] = useStorage("count", 0);
  return (
    <>
      <h3>数量:{count}</h3>
      <button onClick={() => setCount(count + 1)}>+</button>
      <button onClick={() => setCount(count - 1)}>-</button>
    </>
  );
}

export default App;
